package control
{
	import control.panel.PanelControl;
	
	import view.panel.feed.FamousPanel;
	
	public class FamousPanelControl extends PanelControl
	{
		public function FamousPanelControl()
		{
			initPanel();
		}
		
		private function initPanel():void
		{
			_view.famousPanel = new FamousPanel(this);
		}
		
		public function onBut(type:int):void
		{
			if (type == 0)
			{
				_model.netRemote.sendFamous(_view.famousPanel.content);
			}
			_view.famousPanel.close();
			_view.famousPanel.input.text = "";
		}
		
		public function open():void
		{
			_view.famousPanel.open();
		}
	}
}